package com.yu.enmus;

import lombok.Getter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author jiangting
 * description:
 * path: com.neucloud.iot.base-BackCodeEnum
 * date: 2021/3/31
 */
@Getter
public enum BackCodeEnum {
    QUERY_SUCCESS("200", "查询成功"),
    SAVE_SUCCESS("201", "新建/修改成功"),
    WAITING("202", "请求排队中"),
    DEL_SUCCESS("204", "删除成功"),
    INVALID_REQUEST("400", "请求有错误"),
    NO_LOGIN("401", "没有权限（用户未登录、用户名或密码错误）"),
    FORBIDDEN("403", "访问被禁止"),
    NOT_FOUND("404", "请求不存在"),
    NOT_ACCEPTABLE("406", "请求数据格式有误"),
    RESOURCE_CONFLICT("409", "资源冲突"),
    INTERNAL_SERVER_ERROR("500", "服务器发生错误"),;


    private String code;

    private String description;

    BackCodeEnum(String errorCode, String errorDescription) {
        this.code = errorCode;
        this.description = errorDescription;
    }
}
